
<style type="text/css">
.parent-category{float:left; width:100%; height:auto; min-height:100%;}
.parent-category ul{margin:0; padding:0; width:100%;}
.parent-category ul li{list-style:none; text-align:center; height:50px; line-height:50px; white-space:nowrap; width:100%; border-bottom:1px solid #e0e0e0; position:relative; right:-1px;}
.parent-category ul li.active{border-right:1px solid #fff; z-index: 10000}
.parent-category ul li a{color:#333; display:inline-block; width:100%; height:100%; text-decoration:none;}
.children-category{width:100%; min-height:100%; height:auto; color: #252525;}
.children-category ul{list-style:none; margin:0; padding:0; overflow-y:auto; overflow-x:hidden; border-left:1px solid #e0e0e0; min-height:100%;}
.children-category ul li{text-align:left; height: 32px; line-height: 32px; padding-left: 10px}
.children-category ul li.delivery-tips{height:25px; line-height:25px; margin-top: -15px; font-size: .65rem; color: #ff2d4b}
.children-category ul li a{display:inline-block; width:100%; height:100%; text-decoration:none; color:#333;}
.children-category ul li a span{font-size: .6rem; color: #999;}
.children-category .block{display:block; color:#ef1e15; font-size:.6rem;}
.order-create-page #addressInfo:after {
    content: ' ';
    position: absolute;
    left: 0;
    bottom: -.4rem;
    width: 100%;
    height: .8rem;
    background: url(../images/order_line.jpg) repeat-x;
    background-size: 30%;
}
.fui-footer.quick {
    background: #474749;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    z-index: 30;
}
.fui-footer.quick .quick-cart {
    width: 3.6rem;
    position: relative;
}
.fui-footer.quick .quick-cart.an {
    animation: cartan 0.5s;
}
@keyframes cartan {
    0% {
        transform: scale(0.8);
        -ms-transform: scale(0.8);
        -webkit-transform:scale(0.8);
        -o-transform: scale(0.8);
        -moz-transform: scale(0.8);
    }
    25% {
        transform:scale(1.1);
        -ms-transform: scale(1.1);
        -webkit-transform:scale(1.1);
        -o-transform: scale(1.1);
        -moz-transform: scale(1.1);
    }
    50% {
        transform:scale(0.9);
        -ms-transform: scale(0.9);
        -webkit-transform:scale(0.9);
        -o-transform: scale(0.9);
        -moz-transform: scale(0.9);
    }
    100% {
        transform:scale(1);
        -ms-transform: scale(1);
        -webkit-transform:scale(1);
        -o-transform: scale(1);
        -moz-transform: scale(1);
    }
}
.fui-footer.quick .quick-cart .dot {
    background: #eb0101;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.6rem;
    height: 0.8rem;
    line-height: 0.8rem;
    margin-left: 0.1rem;
    min-width: 0.8rem;
    padding: 0 0.2rem;
    position: absolute;
    top: -0.6rem;
    right: 0;
    vertical-align: top;
    text-align: center;
    z-index: 11;
    display: none;
}
.fui-footer.quick .quick-cart .inner {
    height: 3rem;
    width: 3rem;
    border-radius: 3rem;
    background: #ff5555;
    border: 0.25rem solid #4d4d4d;
    color: #fff;
    text-align: center;
    line-height: 2.6rem;
    position: absolute;
    right: 0;
    bottom: 0.26rem;
    z-index: 10;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 4px rgba(0,0,0,0.3);
    -moz-box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.fui-footer.quick .quick-cart .inner .icon {
    font-size: 1.4rem;
}
.fui-footer.quick .quick-cart.empty .inner {
    background: #404040;
    color: #67676b;
}
.fui-footer.quick .quick-info {
    width: 100%;
    padding: 0.3rem 0.4rem;
    line-height: 0.8rem;
    font-size: 0.65rem;
    color: #fff;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.fui-footer.quick .quick-info .price {
    font-size: 0.9rem;
    line-height: 1rem;
}
.fui-footer.quick .quick-submit {
    height: 2.5rem;
    padding: 0 1.2rem;
    line-height: 2.5rem;
    background: #ff9d55;
    color: #fff;
    display: inline-block;
}
.fui-footer.quick .quick-submit.disabled {
    background: #5c5c5f;
}
</style>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'main'">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">确认订单</div>
		<div class="fui-header-right"></div>
	</div>
	<div class="fui-content">
        <!--地址选择-->
        
		<div class="weui_cells weui_cells_form" style="margin-top:0">
            <div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">买家留言</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" placeholder="50字以内（选填）" ng-model="pagedata.post.remark">
                </div>
            </div>
        </div>
		<div class="weui_cells">
            <div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <span><i class="icon jinyunicon icon-dianpu"></i> {{pagedata.store.title}}</span>
                </div>
                <div class="weui_cell_ft label label-f60" style="color:#fff">{{pagedata.order_typename}}</div>
            </div>
			<div class="weui_cell" style="padding:0px 15px">
                <div class="weui_cell_bd weui_cell_primary orange">
                    <span class="bold">商品清单</span>
                </div>
            </div>
			<div class="weui_cell_good" ng-repeat="item in pagedata.carts">
				<div class="weui_cell" style="padding:0px" >
					<div class="weui_cell_bd weui_cell_primary">
						<span>{{item.goodname}}</span>
					</div>
					<div class="weui_cell_ft">{{item.goodnum}}份 ￥{{item.goodprice}}.00</div>
				</div>
				<div class="row" style="margin:0 10px">
					<div class="jy-3" ng-repeat="p in item.packageinfo">
							<div class="yuyue-duan" style="width:auto;margin-top:0;color:#19b955">
								<div>{{p.title}} ￥{{p.price}} × {{p.num}}</div>
								<div class="clear"></div>
							</div>
					</div>
				</div>
			</div>
			
			<div class="weui_cell">
                <div class="weui_cell_bd weui_cell_primary">
                    <span ng-if="pagedata.youhui >0"><i class="icon jinyunicon icon-trade" style="font-size: 0.65rem"> 优惠：￥{{pagedata.youhui || 0}}.00</i></span>
					
                </div>
                <div class="weui_cell_ft">总计：￥<span class="red bold">{{pagedata.allprice}}.00</span</div>
            </div>
        </div>
</div>
<div class="fui-footer quick">
	<div class="quick-info">
		<span class="price" id="cart-price" style="line-height:2.0rem;color:#fff">￥<span class="bold">{{pagedata.allprice}}.00</span></span>
	</div>
	<div ng-if="!pagedata.order_id" class="quick-submit" id="btn-submit" href="javascript:" ng-click="pagedata.gopay();" style="margin: 0">确认下单</div>
	<div ng-if="pagedata.order_id" class="quick-submit" id="btn-submit" href="javascript:" ng-click="access_json('jy_meye/order_show/')" style="margin: 0">查看下单</div>
</div>
</div>
<script type="text/javascript">

scope.minusupnum = function(){
		scope.pagedata.allprice -= parseInt(scope.pagedata.store.in_pay);
}
scope.plusupnum = function(){
		scope.pagedata.allprice += parseInt(scope.pagedata.store.in_pay);
}

</script>
<script>
scope.pagedata.gopay=function(){
	scope.post_json('post',scope.pagedata.post,function(pay_id){
		scope.pagedata.order_id=result.order_id;
		scope.$evalAsync();
		scope.tool.pay(result.pay_id,function(res){
				if(res.type=='success'){
					scope.message('支付成功！','success','jy_meye/order_show/');
				}else{
					scope.message('支付失败！','success','jy_meye/order_show/');
				}
		});
	});
}
</script>